package com.zoffy.apiclientsdk;

import com.zoffy.apiclientsdk.client.ZoffyClientFactory;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
@ConfigurationProperties("zoffyapi.client")//@ComponentScan
public class ZoffyApiConfig {
    private String accessKey;
    private String secretKey;
    @Bean
    public ZoffyClientFactory zoffyClientFactory(){
        return new ZoffyClientFactory(accessKey,secretKey);
    }

}
